package cn.stylefeng.guns.modular.tool.entity;

import com.baomidou.mybatisplus.annotation.TableName;

import lombok.Data;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

/**
 * <p>
 * 云仓移库表
 * </p>
 * @author zhucx
 * @since 2023-04-10
 */
@TableName("tool_repair_goods")
@Data
public class ToolRepairGoods implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 源仓库id
     */
    @TableField("sourcewarehouse_id")
    private Long sourcewarehouseId;

    /**
     * 源仓库名称
     */
    @TableField("sourcewarehouse_name")
    private String sourcewarehouseName;

    /**
     * 源库区id
     */
    @TableField("sourcearea_id")
    private Long sourceareaId;

    /**
     * 源库区编号
     */
    @TableField("sourcearea_number")
    private String sourceareaNumber;

    /**
     * 源库位id
     */
    @TableField("sourcepositionId")
    private Long sourcepositionId;

    /**
     * 源库位编号
     */
    @TableField("sourceposition_number")
    private String sourcepositionNumber;

    /**
     * 补货数量
     */
    @TableField("num")
    private String num;

    /**
     * 目的仓库id
     */
    @TableField("aimwarehouse_id")
    private Long aimwarehouseId;

    /**
     * 目的仓库名称
     */
    @TableField("aimwarehouse_name")
    private String aimwarehouseName;

    /**
     * 目的库区id
     */
    @TableField("aimarea_id")
    private Long aimareaId;

    /**
     * 目的库区编号
     */
    @TableField("aimarea_number")
    private String aimareaNumber;

    /**
     * 目的库位id
     */
    @TableField("aimpositionId")
    private Long aimpositionId;

    /**
     * 目的库位编号
     */
    @TableField("aimposition_number")
    private String aimpositionNumber;

    /**
     * 商品名
     */
    @TableField("goods_name")
    private String goodsName;

    /**
     * 商品编号
     */
    @TableField("goods_number")
    private String goodsNumber;

    /**
     * 商品id
     */
    @TableField("goods_id")
    private Long goodsId;

    /**
     * 备注
     */
    @TableField("nodes")
    private String nodes;

    /**
     * 交付客户id
     */
    @TableField("deliver_id")
    private Long deliverId;

    /**
     * 部门id
     */
    @TableField("dept_id")
    private Long deptId;

    /**
     * 乐观锁
     */
    @TableField("version")
    private Integer version;

    /**
     * 创建时间
     */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 创建用户
     */
    @TableField("create_name")
    private String createName;

    @Override
    public String toString() {
        return "ToolRepairGoods{" +
        "id=" + id +
        ", sourcewarehouseId=" + sourcewarehouseId +
        ", sourcewarehouseName=" + sourcewarehouseName +
        ", sourceareaId=" + sourceareaId +
        ", sourceareaNumber=" + sourceareaNumber +
        ", sourcepositionId=" + sourcepositionId +
        ", sourcepositionNumber=" + sourcepositionNumber +
        ", num=" + num +
        ", aimwarehouseId=" + aimwarehouseId +
        ", aimwarehouseName=" + aimwarehouseName +
        ", aimareaId=" + aimareaId +
        ", aimareaNumber=" + aimareaNumber +
        ", aimpositionId=" + aimpositionId +
        ", aimpositionNumber=" + aimpositionNumber +
        ", goodsName=" + goodsName +
        ", goodsNumber=" + goodsNumber +
        ", goodsId=" + goodsId +
        ", nodes=" + nodes +
        ", deliverId=" + deliverId +
        ", deptId=" + deptId +
        ", version=" + version +
        ", createTime=" + createTime +
        ", createName=" + createName +
        "}";
    }
}
